Wdr\App\Helpers\Woocommerce D

Total Complexity 321
Dependencies 5
Dependents 14
Total lines 1,677
Lines of code 941
Logical lines of code 490
Comment lines 514
Methods 106
Properties 4

Methods 106

Method Rating Maintainability Complexity Lines of code
getAllAvailableAttributeDetails()
A
50 12 26
getBillingEmailFromPost()
A
54 9 21
removeSpecificNoticeFromSession()
A
55 8 20
getCart()
S
58 7 16
addCartFee()
S
55 6 20
getCartSubtotal()
S
59 6 14
getOrderItemsQty()
S
54 5 22
getProductsBySku()
S
58 5 17
getProductIdFromCartItem()
S
61 5 12
isProductInSale()
S
61 5 12
getCartLineItemSubtotal()
S
61 5 11
calculateCartTotals()
S
65 5 9
get_shipping_packages()
S
64 5 10
getAppliedCoupons()
S
64 5 10
add_to_cart()
S
63 5 10
set_quantity()
S
63 5 10
remove_cart_item()
S
63 5 10
remove_coupon()
S
63 5 10
getProductId()
S
61 4 13
getCustomProductTaxonomies()
S
58 3 16
getOrdersByConditions()
S
58 3 16
getShippingCountry()
S
67 4 8
getShippingState()
S
67 4 8
getItemId()
S
64 4 10
getShippingCity()
S
67 4 8
getBillingCity()
S
67 4 8
getProductFromCartItem()
S
63 4 10
getShippingZipCode()
S
67 4 8
getStatesList()
S
67 4 8
getCountriesList()
S
67 4 8
validateDynamicCoupon()
S
59 3 14
getCheckOutPostData()
S
61 3 12
getProductCategories()
S
61 3 12
checkCouponAlreadyExistsInWooCommerce()
S
62 3 11
getPaymentMethodList()
S
68 3 8
getExcludingTaxPrice()
S
63 3 10
getWeight()
S
67 3 8
getOrderItemsId()
S
64 3 10
getOrderPostType()
S
67 3 9
getIncludingTaxPrice()
S
63 3 10
getSession()
S
67 3 8
setSession()
S
69 3 7
getRole()
S
70 3 6
getCategorySlugByID()
S
67 3 7
availableProductVariations()
S
66 3 8
getOrder()
S
67 3 9
getProduct()
S
64 3 9
getProductSalePrice()
S
64 3 10
getCartTotalQuantities()
S
63 3 10
isRTLEnable()
S
71 3 6
getProductParentId()
S
64 3 10
getBannerPositionList()
S
50 1 28
getOrderItemMeta()
S
71 2 6
getParentProduct()
S
68 2 7
wc_format_decimal()
S
70 2 6
get_variation_regular_price()
S
70 2 6
removeHtmlTags()
S
67 2 8
setLoopProperties()
S
71 2 6
getPriceHtml()
S
68 2 7
productLoopEnd()
S
71 2 6
productLoopStart()
S
71 2 6
getOrderStatusList()
S
72 2 6
getOnSaleProductsIds()
S
69 2 7
getTermSlugByID()
S
66 2 8
getTagSlugByID()
S
66 2 8
getOrderItems()
S
71 2 6
getOrderCurrency()
S
71 2 6
setOrderItemMeta()
S
70 2 6
productTypeIs()
S
71 2 6
printNotice()
S
73 2 5
variationIsVisible()
S
69 2 7
getProductChildren()
S
71 2 6
formatSalePrice()
S
70 2 6
getAttributeVariation()
S
71 2 6
getAttributeOption()
S
71 2 6
getAttributeName()
S
71 2 6
getProductPriceSuffix()
S
70 2 6
getProductSku()
S
71 2 6
getProductAttributes()
S
71 2 6
getWooPluginUrl()
S
72 2 6
getProductTags()
S
71 2 6
getProductPrice()
S
68 2 7
getProductRegularPrice()
S
68 2 7
is_ajax()
S
72 2 6
getOrderTotal()
S
71 2 6
orderHasShippingMethod()
S
71 2 6
formatPriceRange()
S
66 2 8
formatPrice()
S
71 2 6
get_currency_symbol()
S
72 2 6
isEnteredPriceIncludeTax()
S
69 2 7
getUserRolesList()
S
70 2 7
setCartProductPrice()
S
71 2 6
hasCouponInCart()
S
71 2 6
addCouponDiscount()
S
71 2 6
formatStringToUpper()
S
69 2 7
getCouponCode()
S
71 2 6
isTaxEnabled()
S
69 2 7
getCartItems()
S
68 2 7
wc_add_notice()
S
72 2 5
round()
S
68 2 7
formatStringToLower()
S
69 2 7
getWeekDaysList()
S
62 1 11
reCalculateCartTotal()
S
72 1 5
getConvertedFixedPrice()
S
79 1 3
displayTableIfAnyOneVariantHasDiscount()
S
79 1 3
getUserSelectedPaymentMethod()
S
79 1 3